Calculating resistance worked example